@extends('shangcheng.admin.index');

@section('con')

<div class="col-xs-12">
    <div class="panel panel-default">
        
        <div class="panel-heading" class="col-xs-5">
            添加分类
        </div>

        <form action="{{url('admin/type/doadd')}}" method="post" enctype="multipart/form-data">

        <div class="panel-body">
            <div class="row">
                <div class="col-xs-6">
                    <form role="form">
                        <div class="form-group">

                        @if (count($errors) > 0)
                        <div class="alert alert-danger">
                            <ul>
                                @foreach ($errors->all() as $error)
                                    <li>{{ $error }}</li>
                                @endforeach
                            </ul>
                        </div>
                        @endif

                            <select name="name">
                                @foreach()                                
                            </select>
                        </div>
                        
                        <div class="form-group">
                            <label>密码</label>
                            <input class="form-control" type="text" name="password">
                        </div>
	
                        <div class="form-group">
                            <label>邮箱</label>
                            <input class="form-control" type="email" name="email" value="{{old('email')}}">
                        </div>

                        <div class="form-group">
                            <label>头像</label>
                            <input type="file" name="photo">
                            
                        </div>

                       {{csrf_field()}}   
                       <button type="submit" class="btn btn-default">添加</button>

                       <button type="reset" class="btn btn-default">重置</button>
                  
                        
                        
                        
                </div>
				             
				</form>

            </div>
            <!-- /.row (nested) -->
        </div>
        <!-- /.panel-body -->
    </div>
    <!-- /.panel -->
</div>
@endsection